-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model log compression #532
base: master
Are you sure you want to change the base?
Conversation
0e3efdb
to
d6c057f
Compare
I'd be tempted to add archive:
enable: True
compress_logs: True and make Currently Lines 108 to 112 in 7c885b8
It would also require changing the code to check if Lines 827 to 828 in 7c885b8
|
…leanup suggestions
I've had a go at implementing this in 0b2fcc9. See comments for further details! |
Currently cice4 in ESM1.5 is the main model causing problems, but there are a couple of options for generalising this, making it available to other models:
I think the methods should work generally enough that option 1 would work, and I think this would be a bit simpler/easier to follow. Keen to hear other ideas or opinions though! |
@aidanheerdegen I've just marked this one as ready to review! I think the main outstanding question is whether we are happy with the log compression being implemented in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to keep it in the cice driver to begin with as this is the only model for which it is desperately required. Then we can test it operationally and tweak it if necessary.
I have suggested a couple of changes, but push back if you think they're unnecessry.
…st that correct file contents written to archive
…7-compress-model-logs
This draft PR addresses #527.
It adds a
compress_log_files
method, initially just to thecice.py
driver. This is called during thearchive
step and compresses all the log files matching some specified regex patterns into a tarball. Acompress_logs
option in theconfig.yaml
file controls whether to run the compression.I've marked this PR as a draft, as I'd be keen to see if the implementation looks reasonable to others, and if so I think it would be good to move the changes over to the general
model
class making it available to each model.